<h3><?php echo Yii::t('helpdesk','Welcome to DatVietVAC Help Desk'); ?></h3>
<p><?php echo Yii::t('helpdesk','Index_Description'); ?></p>
<hr>

<style type="text/css">

a.hdItem{
	padding: 15px; margin:5px 0; text-align: left; height:110px; width:100%; float:left;
	border: 1px solid #2fa4e7;
	border-radius:10px;
	text-decoration:none;
}
.hdItem h4{
	margin:5px 0;
}
.hdItem img{
	float:left;
	margin-right:10px;
	width:64px;	
}
</style>
<div class="row">		
	<div class="col-md-4">
        <a class="hdItem" href="/documents.html">
        	<img alt="Add Ticket" src="img/documents.png">
        	<h4><?php echo Yii::t('helpdesk','Documents'); ?></h4>
			<p style="font-size:13px;"><?php echo Yii::t('helpdesk','Search for, or be linked to, legal documents, policies, guidelines, templates.'); ?></p>
        </a>
    </div>
    <div class="col-md-4">
        <a class="hdItem" href="/faqs.html">
            <img alt="Tickets Manager" src="img/faqs.png">
            <h4><?php echo Yii::t('helpdesk','FAQs'); ?></h4>
        	<p style="font-size:13px;"><?php echo Yii::t('helpdesk','Search directly for the Answers you may need through Frequently Asked Questions.'); ?></p>
        </a>
    </div>		
    <div class="col-md-4">
        <a class="hdItem" href="/tickets.html">
            <img alt="Add Ticket" src="img/tickets.png">
            <h4><?php echo Yii::t('helpdesk','Support Tickets'); ?></h4>
        	<p style="font-size:13px;"><?php echo Yii::t('helpdesk','Click to create a Ticket and get answers for your questions.'); ?></p>
        </a>
    </div>		
</div>
<hr>
<div class="sidebar">
	<?php if(!empty($arrDocuments)): ?>
	<div class="section">
		<h4><?php echo Yii::t('helpdesk','Latest documents'); ?></h4>
		<ul>
        	<?php foreach($arrDocuments as $R): 
					if(!empty($R['post_category'][0])) $postCateId = $R['post_category'][0]['category_id'];
					else $postCateId = 0;
			?>
			<li>
            	<a href="/documents/<?php echo $postCateId; ?>/<?php echo Utils::uri_encode($R['post_title']); ?>.<?php echo $R['post_id']; ?>.html">
            		<?php echo $R['post_title']; ?>
                </a>   
            </li>
            <?php endforeach; ?>
		</ul>
	</div>
    <?php endif; ?>
	<!--<div class="section">
		<h4>Latest FAQs</h4>
		<ul>
			<li><a target="_blank" href="http://www.sysaid.com/down/EULA-installed.pdf">EULA Installed Program</a></li>
			<li><a target="_blank" href="http://www.sysaid.com/down/service-agreement-cloud.pdf">Service Agreement Cloud</a></li>
			<li><a target="_blank" href="http://cdn1.sysaid.com/sla-support.pdf">Service Level Agreement (SLA)</a></li>
		</ul>
	</div>-->
</div>